﻿@{
    Layout = "";
    bool isImage = ViewBag.IsImage;
    var index = 99999;
    
}
@model Coralcode.Base.Entity.Domains.IPagedDomainList<CoralNode.CoralFile.Entity.Domains.FileStoreDomain>
@{
    ViewBag.PagerList = Model;
}
<style>
    #pager { padding: 0; padding-top: 10px; }
</style>
<div class="funsearch  pb_1 pr_2 extra_normal">
    <div class="f_r">
        <form method="POST" action="/m/file/ProcessRequest">
            <label class="search f_l">
                @Html.TextBox("Title", (string)ViewBag.Query.Title, new { @class = "text w_18", @msg = "请输入关键字" })
                <input type="submit" value="" class="submit" />
            </label>
        </form>
    </div>
</div>

<ul class="list_img">
    @foreach (var item in Model.Items) {
        <li data-meta="{filePath:'@item.Path',title:'@item.Title',description:'@item.Description'}"
            style="position: relative; z-index: @(index--); cursor: pointer;">
            <img src="@UtilHelper.ToThumb(item.Path, 94, 94)" />
            <div class="fun">
                <span title="@item.Title" class="pl_1 pr_1">@UtilHelper.ToShortTitle(item.Title, 8)</span>
            </div>
            @*<div class="fileinfo js_fileinfo">
                <div class="box clearfix">
                    <span class="ico arraw ico_arraw_up_white"></span>
                    <input type="text" class="text w_24-5 js_watermark" data-msg="在这里填写标题信息" value="@item.Title">
                    <textarea class="textarea js_watermark" data-msg="在这里填写描述信息">@item.Description</textarea>
                    <div class="btnbox">
                        <span class="btn btn_file_edit js_info_ok"></span><span class="btn btn_file_del js_info_reset">
                        </span>
                    </div>
                </div>
            </div>*@
            <label class="checkbox_own qq-upload-li-select">
                <input type="checkbox" checked="checked"></label>
        </li>
    }
</ul>

@Html.IncludePage("CoralAdmin/Shared", "Pager2", new { list = Model })
